<!DOCTYPE HTML>
<html>

<head>
	<title>List Questions</title>
	{% include 'includes.inc' %}
	<script>
		$(document).ready(function(){
			set_tab('#tab_list_question');
		});
	</script>
</head>

<body>
	<div id="main">

	{% include 'header.inc' %}

    <div id="site_content">
		{% include 'sidebar.inc' %}

      <div id="content">
			<h1>Here's all the questions we've got <a href='/t/add-question'>[Add]</a></h1>
			{% if question_list %}
				<ul>
					{% for q in question_list %}
						 <li><a href='show-question?q_id={{q.id}}'>{{q.title}}</a></li>
						 {% endfor %}
				</ul>
			{% else %}
				<p>No questions?! That's not right.</p>
			{% endif%}
      </div>
    </div>

	{% include 'footer.inc' %}
  </div>
</body>
</html>
